package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.EmpSocBackRecordAccountExample.E_AMOUNT;
import static org.jsola.hr.example.EmpSocBackRecordAccountExample.E_EMP_ID;
import static org.jsola.hr.example.EmpSocBackRecordAccountExample.M_AMOUNT_NOT_NULL;
import static org.jsola.hr.example.EmpSocBackRecordAccountExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.EmpSocBackRecordAccountExample.N_AMOUNT;
import static org.jsola.hr.example.EmpSocBackRecordAccountExample.N_EMP_ID;

/**
 * 社保回款账户
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【社保回款账户】的参数")
@Data
public class EmpSocBackRecordAccountAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_AMOUNT, example = E_AMOUNT, required = true)
    @NotNull(message = M_AMOUNT_NOT_NULL)
    private BigDecimal amount;


}

